package com.yuju.order.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.order.dao.IReserveDao;
import com.yuju.order.dao.entity.Reserve;
import com.yuju.order.dao.mapper.ReserveMapper;
import com.yuju.order.model.ReserveModel;
import com.yuju.persist.base.mapper.BaseMapper;
/**
 * 
 * 类名：ReserveDaoImpl  <br />
 *
 * 功能：
 *
 * @author : sunyl <br />
 * @Date : 2017年11月25日 下午4:40:56  <br />
 * @version : 1.1 <br />
 */
@Repository
public class ReserveDaoImpl extends AbstractBaseDao<ReserveModel, Reserve, String> implements IReserveDao {
	@Autowired
	ReserveMapper reserveMapper;
	
	@Override
	public BaseMapper<Reserve, String> getMapper() {
		// TODO Auto-generated method stub
		return reserveMapper;
	}

	/**
	 * 
	 * 功能: 预抵报表<br/>
	 * 
	 * 重写：zhousc <br/>
	 * 
	 * @Date ：2017年12月20日 上午10:30:20<br/>
	 * 
	 * @param record
	 * @return <br/>
	 * @see com.yuju.order.dao.IReserveDao#dueToArriveIn(com.yuju.order.dao.entity.Reserve)
	 */
	@Override
	public List<Reserve> dueToArriveIn(Map<Object, Object> map) {
		// TODO Auto-generated method stub
		return reserveMapper.dueToArriveIn(map);
	}
	/**
	 * 预定房间类型统计
	 * 功能: <br/>
	 * 
	 * 重写：xuehj <br/>
	 * 
	 * @Date ：2018年1月31日 下午12:03:30<br/>
	 * 
	 * @param map
	 * @return <br/>
	 * @see com.yuju.order.dao.IReserveDao#selectReserveCountInfo(java.util.Map)
	 */
	@Override
	public List<Map<String, Object>> selectReserveCountInfo(Map<Object, Object> map) {
		return reserveMapper.selectReserveCountInfo(map);
	}
}
